package cn.iocoder.yudao.module.system.controller.admin.erp.operatelog.vo;

import cn.iocoder.yudao.framework.common.util.date.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import org.springframework.format.annotation.DateTimeFormat;

@Schema(description = "管理后台 - erp操作日志 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpOperateLogRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26896")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "操作人员id", example = "26905")
    @ExcelProperty("操作人员id")
    private Long userId;

    @Schema(description = "模块名称")
    @ExcelProperty("模块名称")
    private String module;

    @Schema(description = "操作人ip", example = "你猜")
    @ExcelProperty("操作人ip")
    private String operateIp;
    @Schema(description = "操作详情", example = "你猜")
    @ExcelProperty("操作详情")
    private String description;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND,timezone = "GMT+8")
    @DateTimeFormat(pattern = DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

    @Schema(description = "操作人", example = "你猜")
    @ExcelProperty("操作人")
    private String operate;
}